<!DOCTYPE html>
<html>
<head>
    <title>${Session.securityConfig.title}</title>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="acooly">
    <meta http-equiv="description" content="spring+jpa+hibernate+easyui+springmvc+jstl/freemarker">
    <meta name="X-CSRF-TOKEN" content="${Request['org.springframework.security.web.csrf.CsrfToken'].token}"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">


    <!-- layui -->
    <link rel="stylesheet" href="/manage/assert/plugin/layui/css/layui.css">
    <link rel="stylesheet" href="/manage/assert/css/video-js.min.css">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
    <!-- Theme style -->
    <link rel="stylesheet" href="/manage/assert/plugin/adminlte/css/AdminLTE.css">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
     folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" href="/manage/assert/plugin/adminlte/css/skins/_all-skins.min.css">
    <!-- zTree -->
    <link rel="stylesheet" type="text/css" href="/manage/assert/plugin/jquery-ztree/css/zTreeStyle/zTreeStyle.css"/>
    <!-- icons -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/4.4.8/css/ionicons.min.css" rel="stylesheet">
    <link rel="stylesheet" href="/manage/assert/plugin/awesome/4.7.0/css/font-awesome.min.css">
<#--<link rel="stylesheet" href="/manage/assert/plugin/Ionicons/css/ionicons.min.css">-->

    <!-- AdminLte 扩展 -->
    <!-- jvectormap: 地图 -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/jvectormap/2.0.4/jquery-jvectormap.min.css" rel="stylesheet">
<#--<link rel="stylesheet" href="/manage/assert/plugin/jvectormap/jquery-jvectormap.css">-->
    <!-- Date Picker 日期-->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.8.0/css/bootstrap-datepicker.min.css" rel="stylesheet">
<#--<link rel="stylesheet" href="/manage/assert/plugin/bootstrap-datepicker/css/bootstrap-datepicker.min.css">-->
    <!-- Daterange picker 日期段 -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-daterangepicker/2.1.27/daterangepicker.min.css" rel="stylesheet">
<#--<link rel="stylesheet" href="/manage/assert/plugin/bootstrap-daterangepicker/daterangepicker.css">-->
    <!-- bootstrap wysihtml5 - text editor -->
    <link rel="stylesheet" href="/manage/assert/plugin/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">
    <!-- Google Font -->
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
    <link rel="stylesheet" href="/manage/assert/css/style.css">
    <!-- easyui及自定义 -->
    <link id="easyuiTheme" rel="stylesheet" href="/manage/assert/plugin/jquery-easyui/themes/acooly4/easyui.css" type="text/css"/>
    <link rel="stylesheet" type="text/css" href="/manage/assert/style/icon.css">
    <link rel="stylesheet" href="/manage/assert/plugin/jquery-easyui/themes/icon.css" type="text/css"/>
    <link id="easyuiThemeBasic" rel="stylesheet" href="/manage/assert/plugin/jquery-easyui/themes/acooly4/basic_new.css">

    <!-- 扩展css -->
${extendStyles}

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries
     WARNING: Respond.js doesn't work if you view the page via file://-->
    <script src="/manage/assert/js/jquery.js"></script>
    <!--[if lt IE 9]>

    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <script src=""></script>

    <![endif]-->
    <style>
        .full{
            position: fixed;
            top:0px;
            left: 0px;
            z-index: 999;
            width: 100% !important;
            height: 100% !important;
        }
        .full .panel{
            width: 100% !important;
            height: 100% !important;
            padding: 0px !important;
        }
        .full .panel .panel-body{
            width: 100% !important;
            height: 100% !important;
        }

        #layout_center_tabs > .tabs-panels > .panel > .panel-body{
            background-color: rgb(7,7,46) !important;
        }
        .panel .datagrid-wrap{
            border: none !important;
        }
        .panel-body{
            color: #fff !important;
            background-color: rgb(7,7,46) !important;
        }
        .datagrid-toolbar, .datagrid-pager, .datagrid-footer-inner{
            background-color: rgb(7,7,46) !important;
            border: none !important;
        }
        .datagrid-header-inner{
            background-color: rgb(7,7,46) !important;
            border: none !important;
        }
        .datagrid-view .datagrid-btable{
            width: 90%;
            marign:0 auto;
        }
        .datagrid-view{
            width: 90%;
            left: 50px;
        }
        .datagrid-view1{
            left:4%;
        }
        .datagrid-view2{

            overflow-y: auto;
            right: 50px;

        }
        .datagrid-view2 .datagrid-header-inner{
            width: 89%;
        }
        .datagrid-view2 .datagrid-header-inner table{
            width: 100%;
        }
        .tableForm{
            background-color: rgb(7,7,46) !important;
        }
        .tableForm input{
            border-radius: 3px;
            padding-left: 5px !important;
            color: #000 !important;
        }
        input{
            color: #000 !important;
            border-radius: 3px;
        }
        from input{
            padding-left: 5px !important;
            border:none;
        }
        select{

            border-radius: 3px;
            color: #000 !important;
        }
        .datagrid-toolbar span{
            color: #fff !important;
        }
        .datagrid-toolbar span:hover{
            color: #000 !important;
        }
        .datagrid-header, .datagrid-toolbar, .datagrid-pager, .datagrid-footer-inner{
            border-color:rgb(7,7,46) !important;
        }

        .datagrid-header, .datagrid-td-rownumber{
            background-color:rgb(7,7,46) !important;
        }
        table{
            color: #fff !important;
        }
        .datagrid-row{
            border-color:rgb(7,7,46) !important;
        }

        .window .panel-header,.window .panel-body{
            border-color: #c1c1c1;
        }
        .window .panel-header .panel-title{
            color:#000 !important;
            padding-left: 10px;
        }
        .window .panel-body{
            color: #000  !important;
            background-color:#fff  !important ;
        }
        .window .panel-body input{
            border:1px solid #c3c3c3 !important ;
            color: #000 !important ;
        }
        .window .panel-body textarea{
            border:1px solid #c3c3c3 !important ;
            color: #000 !important ;
        }
        .window .panel-body .panel .panel-body{
            padding-top: 10px;
        }
        .window .tableForm{
            color: #000 !important;
            background-color:#fff  !important ;
        }
        .combo-p .panel-body{
            color: #000 !important ;
            background-color: #fff  !important ;
        }
        .combo-p .combobox-item{
            color: #000 !important ;
            background-color: #fff  !important ;
        }
        .combo-p .combobox-item-selected{
            background-color: #c1c1c1 !important ;
        }
        .main-header .sidebar-toggle:before{
            content:none !important ;
        }

        #tableForm_error th, .editForm th{
            text-align: center !important ;
        }
        #tableForm_error td, .editForm td{
            text-align: center !important;
        }
        .tableForm th, .editForm th{
            text-align: center  ;
        }
        .tableForm td, .editForm td{
            text-align: left ;
        }
        .datagrid-row td{
            overflow: hidden;
            text-overflow:ellipsis;
            white-space: nowrap;
        }
        .datagrid-view {
            height: 92% !important;
            overflow: unset;
        }
</style>
</head>

<body class="hold-transition skin-blue sidebar-mini">

<script>
    $(function (){
        var menuhide=0;
        var width=0;
        var height=0;
        $(document).on("dblclick","#sys_shou",function(){
            var have = $(this).hasClass("full");
            if(!have){
                $("#hideheader").hide();
                width=$(this).width();
                height=$(this).height();
                $("#acooly_admin_menu_container").hide();
                $(this).addClass("full");
                $("body").parent().css("overflow-y","hidden");
            }else{
                $("body").parent().css("overflow-y","auto");
                $(this).removeClass("full");
                $(this).css("cssText","width:"+width+"px!important");
                $(this).css("cssText","height:"+height+"px!important");
                $(this).find(".panel").css("cssText","width:"+width+"px!important");
                $(this).find(".panel").css("cssText","height:"+height+"px!important");
                $(this).find(".panel-body").css("cssText","width:"+width+"px!important");
                $(this).find(".panel-body").css("cssText","height:"+height+"px!important");
                $("#hideheader").show();
                if(menuhide==0){
                    $("#acooly_admin_menu_container").show();
                }
            }
        })
        $(document).on("click",".sidebar-toggle",function () {
            var left = $("#navbar").css("margin-left");
            if(left=="0px"){
                $("#navbar").css("margin-left","230px");
                $("#navbar").css("margin-left","230px");
                $("#content-body").css("margin-left","230px");
                setTimeout(function () {
                    $("#logo").show();
                    $("#acooly_admin_menu_container").show();
                },400)
                $(this).find("span").attr("class","fa-chevron-left");
                menuhide=0;
            }else{
                $("#navbar").css("margin-left","0px");
                $("#logo").hide();
                $("#navbar").css("margin-left","0px");
                $("#acooly_admin_menu_container").hide();
                $("#content-body").css("margin-left","0px");
                $(this).find("span").attr("class","fa-chevron-right");
                menuhide=1;
            }
        })
    })
</script>
<div class="wrapper">

    <header class="main-header" id="hideheader">
        <!-- Logo -->
        <a href="javascript:;" class="logo" id="logo">
            <!-- mini logo for sidebar mini 50x50 pixels -->
            <span class="logo-mini"><b>B</b>oss</span>
            <!-- logo for regular state and mobile devices -->
            <span class="logo-lg"></span>
        </a>
        <!-- Header Navbar: style can be found in header.less -->
        <nav class="navbar navbar-static-top" id="navbar" style="background: rgb(7,7,46);height: 52px;">
            <!-- Sidebar toggle button-->
            <ul class="nav navbar-nav">
                <li><a href="#" class="sidebar-toggle" role="button">
                    <span class="fa-chevron-left"></span>
                </a></li>
            </ul>

            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    <li class="dropdown user user-menu  tooltip" id="sys_index_error" style="background: rgb(7,7,46);border: 0px; z-index: 99;">
                        <div id="sys_error_index" style="position: absolute;width: 24px;line-height: 24px;border-radius:16px;background-color: red;left:1px;top: 1px;color: #ecf0f5;z-index: 10;text-align: center">

                        </div>
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" id="index_dd" style="padding: 6px;padding-left: 10px;height: 40px;width: 40px; background-image: url(/manage/assert/image/senced-!.png);background-size: 100% 100%;">
                            <#--<img src="/manage/assert/image/senced-!.png" width="30" class="img-circle" alt="User Image">--></a>
                        <ul  class="tooltiptext" id="sys_error_list_index">
                            <li style="text-align: center">无数据</li>
                        <#--<li>22222</li>
                        <li ><a style="width: 100%;text-align: right;display: inline-block;cursor:pointer " href="#" onclick="manage_sys_opens('二级菜单','/manage/lora/alarmList/alarmList.html')">点击查看更多>></a></li>
-->
                        </ul>
                    </li>
                    <li class="dropdown user user-menu" style="position: relative">

                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <img src="/manage/assert/plugin/adminlte/img/avatar_def.jpg" class="user-image" alt="User Image">
                            <span class="hidden-xs"><@shiroPrincipal/></span>
                        </a>
                        <ul class="dropdown-menu">
                            <!-- User image -->
                            <li class="user-header">
                                <img src="/manage/assert/plugin/adminlte/img/avatar_def.jpg" class="img-circle" alt="User Image">

                                <p>
                                ${Session.user.username} - ${Session.user.realName}
                                    <small>${roleName}</small>
                                    <small>创建：${Session.user.createTime?string('yyyy-MM-dd')}</small>
                                </p>
                            </li>

                            <!-- Menu Body -->
                        <#--<li class="user-body">-->
                        <#--<div class="row">-->
                        <#--<div class="col-xs-4 text-center">-->
                        <#--<a href="#">Followers</a>-->
                        <#--</div>-->
                        <#--<div class="col-xs-4 text-center">-->
                        <#--<a href="#">Sales</a>-->
                        <#--</div>-->
                        <#--<div class="col-xs-4 text-center">-->
                        <#--<a href="#">Friends</a>-->
                        <#--</div>-->
                        <#--</div>-->
                        <#--<!-- /.row &ndash;&gt;-->
                        <#--</li>-->
                            <!-- Menu Footer-->
                            <li class="user-footer">
                                <div class="pull-left">
                                    <a href="javascript:;" onclick="$.acooly.framework.changePassword();" class="btn btn-default btn-flat">修改密码</a>
                                </div>
                                <div class="pull-right">
                                    <a href="javascript:;" onclick="$.acooly.framework.logout();" class="btn btn-default btn-flat">安全退出</a>
                                </div>
                            </li>
                        </ul>
                    </li>

                <#--  <#if isOnline == false>
                      <li><a href="javascript:;" onclick="$.acooly.admin.tab.addIframe('帮助文档','fa fa-question-circle fa-lg','https://acooly.cn/docs/core.html')"
                             title="帮助" role="button"><i class="fa fa-question-circle fa-lg"></i></a></li>
                  </#if>-->

                    <!-- Control Sidebar Toggle Button -->
                <#--  <li>
                      <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
                  </li>-->
                </ul>
            </div>
            <div style="width: 100px"> </div>
        </nav>
    </header>
    <!-- Left side column. contains the logo and sidebar -->
    <aside class="main-sidebar" id="acooly_admin_menu_container">

        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
            <!-- Sidebar user panel -->
            <div class="user-panel" style="display: none; background-color: rgb(7,7,46)">
                <div class="pull-left image">
                    <img src="/manage/assert/plugin/adminlte/img/avatar_def.jpg" class="img-circle" alt="User Image">
                </div>
                <div class="pull-left info">
                    <p><@shiroPrincipal/></p>
                    <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
                </div>
            </div>
            <!-- sidebar menu -->
            <ul class="sidebar-menu main-tree" data-widget="tree">
               <#-- <li class="header">
                    功能菜单
                    <span class="pull-right-container">
            &lt;#&ndash;<a title="刷新菜单(重新授权后)" href="javascript:;"><i style="margin-top: 0.3em;" class="fa fa-refresh pull-right"></i></a>&ndash;&gt;
            <a onclick="$.acooly.admin.headerToggle();" title="最大/小化菜单" href="javascript:;">
                <i id="menu-toggle-icon" style="margin-top: 0.3em;" class="fa fa-expand pull-right"></i>
            </a>
        </span>
                </li>-->

                <#list menu as e1>
                <#--第一层-->
                    <li class="treeview<#if e1?index==0> menu-open active</#if>">
                        <a href="javascript:;">
                            <#if e1.iconSkin??><i class="fa ${e1.iconSkin}"></i><#else><span class="line-action ${e1.icon}"></span></#if>
                            <span>${e1.name}</span>
                            <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
                        </a>
                        <ul class="treeview-menu">
                            <#if e1.children??>
                                <#list e1.children as e2>
                                    <#if e2.children??>
                                        <li class="treeview">
                                            <a href="javascript:;" onclick="$.acooly.layout.accessResource({type:'URL',name:'${e2.name}',value:'${e2.value}',showMode:'${e2.showMode}',icon:'${e2.icon}'})">
                                                <#if e2.iconSkin??><i class="fa ${e2.iconSkin}"></i><#else><span class="line-action ${e2.icon}"></span></#if>
                                                ${e2.name}
                                                <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
                                            </a>
                                            <ul class="treeview-menu">
                                                <#list e2.children as e3>
                                                    <li>
                                                        <a href="javascript:;" onclick="$.acooly.layout.accessResource({type:'URL',name:'${e3.name}',value:'${e3.value}',showMode:'${e3.showMode}',icon:'${e3.icon}'})">
                                                            <#if e3.iconSkin??><i class="fa ${e3.iconSkin}"></i><#else><span class="line-action ${e3.icon}"></span></#if>${e3.name}</a>
                                                    </li>
                                                </#list>
                                            </ul>
                                        </li>
                                    <#else>
                                        <li><a href="javascript:;" onclick="$.acooly.layout.accessResource({type:'URL',name:'${e2.name}',value:'${e2.value}',showMode:'${e2.showMode}',icon:'${e2.icon}'})">
                                                <#if e2.iconSkin??><i class="fa ${e2.iconSkin}"></i><#else><span class="line-action ${e2.icon}"></span></#if>${e2.name}
                                        </a></li>
                                    </#if>
                                </#list>
                            </#if>
                        </ul>
                    </li>
                </#list>
            </ul>
        </section>
        <!-- /.sidebar -->
    </aside>

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper" id="content-body" style="background-color: rgb(7, 7, 46)">
        <div id="layout_center_tabs" style="overflow: hidden;background-color: #ecf0f5;" data-options="tabHeight:32">
            <div title="首页" id="sys_shou" data-options="href:'/manage/demo/powerPage/toIndex.html'"></div>
        </div>
        <div id="layout_center_tabsMenu" style="width: 120px;display:none;">
            <div type="refresh">刷新</div>
            <div class="menu-sep"></div>
            <div type="close">关闭</div>
            <div type="closeOther">关闭其他</div>
            <div type="closeAll">关闭所有</div>
        </div>
    </div>

    <!-- /.content-wrapper -->

    <!-- Control Sidebar -->
    <aside class="control-sidebar control-sidebar-dark">
        <!-- Create the tabs -->
        <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
            <li><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-book"></i></a></li>
        <#--<li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>-->
        </ul>
        <!-- Tab panes -->
        <div class="tab-content">
            <!-- Home tab content -->
            <div class="tab-pane" id="control-sidebar-home-tab">
                <h3 class="control-sidebar-heading">文档中心</h3>
                <ul class="control-sidebar-menu">
                    <li>
                        <a href="http://www.fontawesome.com.cn/faicons/" target="_blank">
                            <i class="sidebar-menu-icon fa fa-fonticons bg-red"></i>
                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">文字图标库</h4>
                                <p>AdminLte支持的文字图标库查询，如：Font Awesome...</p>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="http://www.jeasyui.com/" target="_blank">
                            <i class="sidebar-menu-icon fa fa-child bg-purple"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">EasyUI</h4>
                                <p>框架目前仍然以EasyUI作为主要功能开发框架，这里可以访问到官方网站和文档</p>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="https://www.layui.com/" target="_blank">
                            <i class="sidebar-menu-icon fa fa-user bg-orange"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">Layui</h4>
                                <p>框架目前也导入了layui，你可以选择采用layui的开发方式</p>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="https://adminlte.io/" target="_blank">
                            <i class="sidebar-menu-icon fa fa-user bg-yellow"></i>

                            <div class="menu-info" >
                                <h4 class="control-sidebar-subheading">AdminLte</h4>
                                <p>框架重构了结构，采用了2.4版本的AdminLte,所以你当然可以采用AdminLte方式开发界面</p>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="http://freemarker.foofun.cn/" target="_blank">
                            <i class="sidebar-menu-icon fa fa-file-text-o bg-light-blue"></i>
                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">Freemarker</h4>
                                <p>Freemarker中文文档，不叫全，不熟悉的可以查下命令</p>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="javascript:;" onclick="$.acooly.layout.accessResource({type:'URL',name:'Acooly文档',value:'https://acooly.cn/docs/core.html',
                    showMode:'2',icon:'fa-home'})">
                        <#--<a href="https://acooly.cn/docs/core.html" target="_blank">-->
                            <i class="sidebar-menu-icon fa fa-file-code-o bg-green"></i>
                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">Acooly官方文档</h4>
                                <p>Acooly框架的官方文档，包括核心框架介绍，从新手入门的引导，大量的组件库，OpenApi框架等</p>
                            </div>
                        </a>
                    </li>
                </ul>
                <!-- /.control-sidebar-menu -->
            </div>
            <!-- /.tab-pane -->
            <!-- Stats tab content -->
            <div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div>
            <!-- /.tab-pane -->
        </div>
    </aside>
    <!-- /.control-sidebar -->
    <!-- Add the sidebar's background. This div must be placed
         immediately after the control sidebar -->
    <div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
    $.widget.bridge('uibutton', $.ui.button);
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/js/bootstrap.min.js"></script>
<!-- Sparkline 图表 -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-sparklines/2.1.2/jquery.sparkline.min.js"></script>
<!-- jvectormap -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jvectormap/2.0.4/jquery-jvectormap.min.js"></script>
<!-- 矢量图 -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/raphael/2.2.0/raphael.min.js"></script>
<!-- jQuery Knob Chart -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jQuery-Knob/1.2.12/jquery.knob.min.js"></script>
<!-- daterangepicker -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-daterangepicker/2.1.27/moment.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-daterangepicker/2.1.27/daterangepicker.min.js"></script>
<!-- datepicker -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.8.0/js/bootstrap-datepicker.min.js"></script>
<!-- Bootstrap WYSIHTML5 -->
<script src="/manage/assert/plugin/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
<!-- Slimscroll -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jQuery-slimScroll/1.3.8/jquery.slimscroll.min.js"></script>
<#--<script src="/manage/assert/plugin/jquery-slimscroll/jquery.slimscroll.min.js"></script>-->
<!-- FastClick -->
<script src="https://fastclick/1.0.6/fastclick.min.js"></script>
<#--<script src="/manage/assert/plugin/fastclick/lib/fastclick.js"></script>-->
<!-- AdminLTE App -->
<script src="/manage/assert/plugin/adminlte/js/adminlte.js"></script>
<!-- 模板引擎：baidu -->
<script src="/manage/assert/plugin/template/baiduTemplate.js"></script>

<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<#--<script src="/manage/assert/plugin/adminlte/js/pages/dashboard.js"></script>-->
<!-- AdminLTE for demo purposes -->
<script src="/manage/assert/plugin/adminlte/js/demo.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/javascript-detect-element-resize/0.5.3/jquery.resize.min.js"></script>


<#--<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js" charset="utf-8"></script>-->
<script type="text/javascript" src="//cdn.staticfile.org/jquery-migrate/1.1.0/jquery-migrate-1.1.0.min.js" charset="utf-8"></script>
<script type="text/javascript" src="/manage/assert/plugin/jquery-easyui/jquery.easyui.min.js" charset="utf-8"></script>
<script type="text/javascript" src="/manage/assert/plugin/jquery-easyui/locale/easyui-lang-zh_CN.js" charset="utf-8"></script>
<script type="text/javascript" src="/manage/assert/plugin/jquery-easyui/plugins/datagrid-detailview.js" charset="utf-8"></script>
<script type="text/javascript" src="/manage/assert/plugin/jquery-easyui/plugins/datagrid-groupview.js" charset="utf-8"></script>
<!-- easyui portal插件 -->
<link rel="stylesheet" href="/manage/assert/plugin/jquery-easyui-portal/portal.css" type="text/css"/>
<script type="text/javascript" src="/manage/assert/plugin/jquery-easyui-portal/jquery.portal.js" charset="utf-8"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.0/jquery.cookie.js" charset="utf-8"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery.form/3.32.0-2013.04.09/jquery.form.min.js" charset="utf-8"></script>
<script type="text/javascript" src="/manage/assert/plugin/jquery-easyui/plugins/easyui.statistics.js" charset="utf-8"></script>
<script type="text/javascript" src="/manage/assert/plugin/layui/layui.all.js"></script>
<!-- my97日期控件 -->
<script type="text/javascript" src="/manage/assert/plugin/My97DatePicker/WdatePicker.js" charset="utf-8"></script>
<script type="text/javascript" src="/manage/assert/plugin/uploadifive/jquery.uploadifive.js"></script>
<link rel="stylesheet" type="text/css" href="/manage/assert/plugin/uploadifive/uploadifive.css"/>
<!-- ztree -->
<script type="text/javascript" src="/manage/assert/plugin/jquery-ztree/js/jquery.ztree.core-3.5.js"></script>
<script type="text/javascript" src="/manage/assert/plugin/jquery-ztree/js/jquery.ztree.excheck-3.5.js"></script>
<script type="text/javascript" src="/manage/assert/plugin/jquery-ztree/js/jquery.ztree.exedit-3.5.js"></script>
<!--kindEditor插件库 -->
<script charset="utf-8" src="/manage/assert/plugin/kindeditor/kindeditor-all-min.js"></script>
<script charset="utf-8" src="/manage/assert/plugin/kindeditor/lang/zh_CN.js"></script>

<!-- 自己定义的样式和JS扩展 -->
<!-- acooly -->
<script src="/manage/assert/script/acooly.js" charset="utf-8"></script>
<script src="/manage/assert/script/acooly.template.js" charset="utf-8"></script>
<script src="/manage/assert/script/acooly.format.js" charset="utf-8"></script>
<script src="/manage/assert/script/acooly.verify.js" charset="utf-8"></script>
<script src="/manage/assert/script/acooly.verify.js" charset="utf-8"></script>
<script  type="text/javascript" src="${pageContext.request.contextPath}/manage/assert/js/table.js" charset="utf-8"></script>

<script src="/manage/assert/script/acooly.admin.js" charset="utf-8"></script>

<script src="/manage/assert/js/video.min.js" charset="utf-8"></script>

<script src="/manage/assert/script/acooly.framework.js" charset="utf-8"></script>

<script src="/manage/assert/script/acooly.easyui.js" charset="utf-8"></script>
<script src="/manage/assert/script/acooly.layout.js" charset="utf-8"></script>
<script src="/manage/assert/script/acooly.system.js" charset="utf-8"></script>
<script src="/manage/assert/script/acooly.portal.js" charset="utf-8"></script>
<script src="/manage/assert/script/acooly.ui.layer.js" charset="utf-8"></script>

<script src="/manage/assert/js/websocket.js" charset="utf-8"></script>
<script src="/manage/assert/js/socketProcessor.js" charset="utf-8"></script>

<script src="/manage/assert/js/lora.common.js"></script>

<!-- 扩展script -->
${extendScripts}
<script type="text/javascript">
    var contextPath = '';
    $(function () {
        $("#sys_error_index").hide();
        $.acooly.system.init();
        $.acooly.admin.init();
    });

    setInterval(function () {
        $.post("/manage/lora/alarmList/queryList.html",function (r) {
            if(r.total>0){

                $("#sys_error_index").show();
                $("#sys_error_index").text(r.total);
                $("#sys_error_list_index").empty();
                $.each(r.rows,function (i,v) {
                    if(i==0){
                        var error=v.alarm_info.split("[")[0]
                        $("#secondaryPages_error").text(error+"异常")
                    }

                    $("#sys_error_list_index").append("<li style='color: red'>"+(i+1)+"丶"+v.alarm_info+"</li>")
                })
                $("#sys_error_list_index").append("<li ><a style='width: 100%;text-align: right;display: inline-block;cursor:pointer ' href='#' onclick=\"$.acooly.layout.accessResource({type:'URL',name:'报警',value:'/manage/lora/alarmList/alarmList.html',showMode:'1',icon:'fa-align-justify'})\">点击查看更多>></a></li>")
            }else {
                $("#sys_error_index").hide();
            }

        })
    },10000)
    function query_sys_error(){
        var sw = $('<div></fi2>').dialog({
            href : '/node/handle/thyq.html',
            title : '警告',
            width : 600,
            height: 300,
            modal : true,
            iconCls:'icon-no',
            maximizable:false,
            buttons : [{
                id : 'acooly-framework-close-btn',
                text : '关闭', iconCls : 'icon-cancel',
                handler : function() {
                    $("#loding_index").hide();
                    sw.dialog('close');
                }
            }],
            onClose : function() {
                $("#loding_index").hide();
                $(this).dialog('destroy');
            }
        });
    }

    setTimeout(function () {
        // $('#layout_center_tabs').tabs('close', '首页');
        // $.acooly.layout.accessResource({type:'URL',name:'首页',value:'/manage/demo/powerPage/toIndex.html',showMode:'1',icon:'fa-list'})

        //页面加载完成后注册websocket
        $.Web.on("onmessage",$.websocket.processsor);
        $.Web.init(window.location.host, '${Session.user.username}');

    },200)
    var manage_sys_beforeTaleName="首页";
    /* var manage_sys_beforeTaleurl="";*/
    function manage_sys_opens(name,url) {
        debugger
        $('.tabs-selected').find('.tabs-title').html(name)
        $('#layout_center_tabs').tabs('getSelected').panel('options').href = url;
        $('#layout_center_tabs').tabs('getSelected').panel('refresh');
    }
    /* function manage_sys_returnTable(name,url) {
         if(manage_sys_beforeTaleurl){
             return;
         }
         $.acooly.layout.closeTab();
         $.acooly.layout.accessResource({type:'URL',name:this.manage_sys_beforeTaleName,value: this.manage_sys_beforeTaleurl,showMode:'1',icon:'fa-list'})
         manage_sys_beforeTaleurl=url
         manage_sys_beforeTaleName=name
     }*/


</script>

</body>
</html>